package com.mes.biz.mapper;

import com.mes.biz.domain.BizAfterSaleOrderAttach;
import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 售后单附件Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-03-27
 */
public interface BizAfterSaleOrderAttachMapper extends BaseMapper<BizAfterSaleOrderAttach>
{

    List<BizAfterSaleOrderAttach> getBizAfterSaleOrderAttachBySaleOrderId(@Param("saleOrderId") String saleOrderId);

    List<BizAfterSaleOrderAttach> getAttachByOrderIdWithType(@Param("orderId") String orderId, @Param("attachType") String attachType);


    void removeBySaleOrderId(@Param("afterSaleOrderId") String saleOrderId,@Param("attachType") String attachType);
}
